-- GENERATED SPELL FOR [Drek'Maz] --


function spell0_28918(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_28918', 663, 1)
end

function spell1_28918(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28918', 5289, 1)
end

function spell2_28918(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15578,pUnit)
pUnit:RegisterEvent('Sorts_28918', 563, 1)
end

function spell3_28918(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(49807,pUnit)
pUnit:RegisterEvent('Sorts_28918', 2000, 1)
end

function Sorts_28918(pUnit, Event)
local choix_sorts_28918 = math.random(0, 3)
if choix_sorts_28918 == 0 then
pUnit:RegisterEvent('spell0_28918', 1, 1)
end
if choix_sorts_28918 == 1 then
pUnit:RegisterEvent('spell1_28918', 1, 1)
end
if choix_sorts_28918 == 2 then
pUnit:RegisterEvent('spell2_28918', 1, 1)
end
if choix_sorts_28918 == 3 then
pUnit:RegisterEvent('spell3_28918', 1, 1)
end
end

function mob28918_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28918', math.random(1500, 3000), 1)
end

function mob28918_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28918_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28918_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28918, 1, 'mob28918_Action')
RegisterUnitEvent(28918, 2, 'mob28918_Leave')
RegisterUnitEvent(28918, 3, 'mob28918_Kill')
RegisterUnitEvent(28918, 4, 'mob28918_Die')
